import {FC} from "react";
interface IProps {
    name: string;
}
const TestComponent:FC<IProps> = props => {
    const {name} = props;
    return (
        <>
            <div>TestComponent</div>
            <h1>{name}</h1>
        </>
    )
}
// TestComponent.propTypes = {
//     name: PropTypes.number,//加上这句就好了
//   }
export {
    TestComponent
}